import { Injectable } from "@angular/core";
import { HttpClient, HttpHeaders } from "@angular/common/http";
import { Observable } from "rxjs";

@Injectable({
  providedIn: "root",
})
export class OutputdesignotherdtoService {
  constructor(private http: HttpClient) {}

  /**
   * @param formData
   */
  updateHomeWork(file: string): Observable<any> {
    return this.http.post("export_dto_Excel", file, {
      headers: new HttpHeaders({ "Content-Type": "application/json" }),
      responseType: "blob",
      observe: "response",
    });
  }
}
